#!bin/bash
sleep 3
echo "you can delete suid,sgid, or both."
echo "suid = 0 ,sgid = 1 ,suid=2 sgid=2"
read a
if[$a = 0];
then
   find / -perm +4000 
   echo "delete suid ,yes to contain."
   read B
fi
   if [ $B -eq "yes" ]
   find / -perm +4000 -exec chmod -s {} \;
fi
if[$a = 1];
then
   find /-perm +2000
   echo "delete sgid,yes to contain."
   read B
fi
   if [ $B -eq "yes" ]
   find / -perm +2000 -exec chmod -s {} \;
fi
if[$a = 2];
then
   find /-perm +6000
   echo "delete suid and sgin,yes to contain."
   read B
fi
   if [ $B -eq "yes" ]
   find / -perm +6000 -exec chmod -s {} \;  
fi
